// 柱形图
var channelSales = document.querySelector(".box1 .echart");
var channelSalesMyChart = echarts.init(channelSales);

const dataSH = [[181, 35, 125, 0.82, 34, 10]];
const lineStyle = {
  width: 1,
  opacity: 0.5,
};
option = {
  radar: {
    indicator: [
      { name: "机场", max: 300 },
      { name: "商场", max: 250 },
      { name: "火车站", max: 300 },
      { name: "汽车站", max: 5 },
      { name: "地铁", max: 200 },
    ],
    shape: "circle",
    splitNumber: 4,

    // 文字偏移量
    radius: "60%", // 设置圆的半径为 60%
    axisName: {
      color: "#4c9bfd",
      fontSize: 9, // 设置文字大小
    },
    splitLine: {
      lineStyle: {
        color: "rgba(255, 255, 255, 0.5)",
      },
    },
    splitArea: {
      show: false,
    },

    axisLine: {
      lineStyle: {
        color: "#c8c8c8",
      },
    },
  },
  series: [
    {
      name: "Shanghai",
      type: "radar",
      lineStyle: lineStyle,
      data: dataSH,
      symbol: "none",
      itemStyle: {
        color: "#ffffff",
      },
      areaStyle: {
        opacity: 0.4,
      },
      label: true,
    },
  ],
};

channelSalesMyChart.setOption(option);
